Python v3.7 HowTos:
Test numbers
Print without newline or space
n = "246.2458" print(float(n)) print(int(float(n)))
Output:
246.2458 246
See also
https://www.w3resource.com/python-exercises/python-basic-exercise-48.php